package com.eascs.gaczcontract.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.eascs.admin.common.service.BaseSevice;
import com.eascs.gaczcontract.dao.ContractDao;
import com.eascs.gaczcontract.entity.HrUnit;

@Service
public class GaczContractService extends BaseSevice {
	@Autowired
	private ContractDao contractDao;
	
	public HrUnit findByUnitno(String Unitno){
		String sql = "SELECT * FROM hr_units hu WHERE hu.UNITNO = ? ";
		return contractDao.findEntity(sql, HrUnit.class, Unitno);
	}
}
